<style>
.shine {color:#f60}
</style>
<div class="fui-page order-create-page fui-page-current">
	<div class="fui-content">
		<div class="fui-picture">
				<div ng-if="!pagedata.item.video" style="display: block;" data-nocache="true">
					<img ng-src="{{tomedia(pagedata.item.image) || '../core/resource/images/nopic.jpg'}}">
				</div>
				<video ng-if="pagedata.item.video" style="width:100%;max-height:20rem" ng-src="{{tomedia(pagedata.item.video)}}" poster="{{tomedia(pagedata.item.image)}}" x5-playsinline="" playsinline="" webkit-playsinline="" preload="auto"  preload="auto" controls loop="loop">
				</video>
		</div>
		<div class="fui-cell-group fui-cell-click" style="padding-bottom:0.3rem;margin-top:0">
			<div class="fui-cell sm">
				<div class="fui-cell-text bold" style="font-size:1rem">{{pagedata.item.title}}</div>
				<div class="fui-cell-remark noremark lover" style="padding-left:0;margin-top:0.1rem">
					<div class="fui-icon">
						<div class="fui-tag c" style="padding:0.2rem" >
							<i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata,'islike')" ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.islike !=1,'icon-xiai':pagedata.islike >0}" style="font-size:0.8rem"></i>
							<div class="subtitle">点赞</div>
						</div>
					</div>
				</div>
			</div>
			<div class="fui-cell sm">
				<span class="fui-cell-text">{{pagedata.item.times_title||'制作时间'}}：{{pagedata.item.times}}小时 | <span>难易程度:
					<span class="star star1" style="color:#999">
									<span ng-class="{'shine':pagedata.item.star >= 1}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':pagedata.item.star >= 2}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':pagedata.item.star >= 3}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':pagedata.item.star >= 4}"><i class="icon icon-shoucang-tianchong"></i></span>
									<span ng-class="{'shine':pagedata.item.star >= 5}"><i class="icon icon-shoucang-tianchong"></i></span>
					</span>
				</span>
				</span>
			</div>
		</div>
		<div class="fui-cell-group fui-cell-click" style="padding-bottom:0.3rem">
			<div class="fui-cell">
				<div class="fui-cell-text bold" style="font-size:0.8rem">{{pagedata.item.goodslist_title||'清单'}}</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-text subtitle"><i class="icon icon-survey1"></i>{{pagedata.item.goodstext}}</div>
			</div>
			<div ng-if="pagedata.item.goodsid.length>0" class="fui-tab-scroll" style="margin-top:0.5rem;height: 5.5rem">
				<div class="fui-goods-item" href="javascript:;" ng-click="access_json('jy_weishop/goods.detail//id='+item.id)" style="border-radius: .5rem;border: 1px solid #ebebeb;margin-left:0.3rem;" ng-repeat="item in pagedata.item.goodsid">
					<div>
						<div class="image" style="background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
						</div>
					</div>
					<div class="detail" style="padding-top:0.3rem">
						<div>
							<div class="name ng-binding">
								{{item.title}}
							</div>
						</div>
						<div class="price" style="margin-top: 1.6rem">
							<span class="text">￥{{item.price}}
							</span>
							<span class="buy">
								购买
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>
			<div class="fui-cell-group fui-cell-click" style="padding:0.5rem">
				<div class="fui-cell" style="padding-bottom:0.5rem;padding-left:0">
					<div class="fui-cell-text bold" style="font-size:0.8rem">详情</div>
				</div>
				<div class="content-block content-images" style="margin-top:0.5rem" ng-bind-html="trust(pagedata.item.content)"></div>
			</div>
	</div>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
//获取关注
scope.pagedata.setlike=function(){
	scope.post_json('jy_weishop/grass.detail/like/',{'id':scope.pagedata.item.id});
}
</script>